package com.njworkorder.Entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName patrol_info
 */
@TableName(value ="patrol_info")
@Data
public class PatrolInfo {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 巡查类型编码
     */
    private Double patrolType;

    /**
     * 巡查类型名称
     */
    private String patrolTypeName;

    /**
     * 巡查次数
     */
    private Integer totalTaskCount;

    /**
     * 巡查⾥程
     */
    private Double totalMileage;

    /**
     * 巡查时间
     */
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date patrolDate;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date publishTime;
}